﻿using AutoMapper;
using B.S.DataBase.MyProject.API.Appicant.Command;
using B.S.DataBase.MyProject.Domain;
using B.S.DataBase.MyWrite.API.Appicant.Command.Approval;
using B.S.DataBase.MyWrite.API.Appicant.Command.Menus;
using B.S.DataBase.MyWrite.API.Appicant.Command.Roles;

namespace B.S.DataBase.MyProject.API
{
    public class AutoMapperFilePro : Profile
    {
        public AutoMapperFilePro()
        {
            CreateMap<AddUserCommand, User>().ReverseMap();
            CreateMap<UpdateUserCommand, User>().ReverseMap();
            CreateMap<RoleCreateCommand, Role>().ReverseMap();
            CreateMap<UserRoleCommand, UserRole>().ReverseMap();
            CreateMap<AddMenuCommand, Menu>().ReverseMap();
            CreateMap<AddRoleMenuComamnd, RoleMenu>().ReverseMap();
            
            CreateMap<LeaveApplication, UpdApprovalCommand>().ReverseMap();
        }
    }
}